rem usage example: iphone_avi.bat inputfile.avi outputfile.mp4 eng jap
set input=%1
set output=%2
ECHO Stage: 1 of 1: Encoding
mencoder %input% -of lavf -lavfopts format=mp4 -vf-add scale=480:-10 -vf-add harddup -ofps 25 -af lavcresample=44100 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vcodec=mpeg4:vbitrate=768:keyint=25 -o %output%
Echo Done.